const api = [
  // 数据源接口
  {
    url: '/mock-api/v1/admin/account/login',
    type: 'post',
    response: () => {
      return {
        code: 200,
        data: true,
        msg: 'success',
      }
    },
  },
  // 数据表接口
  {
    url: '/mock-api/dev/datatable/list',
    type: 'get',
    response: () => {
      return {
        code: 200,
        data: {
          count: 9,
          rows: [
            {
              id: '1917482928153489410',
              dsName: 'pigxx_core',
              tableName: 'smart_location_user',
              comments: '区域用户关系表',
              columnInfo:
                '[{"name":"id","comment":"主键","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":1,"nullable":-1},{"name":"location_id","comment":"区域","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":-1,"nullable":-1},{"name":"user_id","comment":"用户","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":-1,"nullable":-1},{"name":"create_by","comment":"创建人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"create_time","comment":"创建时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_by","comment":"修改人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_time","comment":"修改时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"del_flag","comment":"删除标记","typeName":"char","precision":1,"scale":0,"defaultValue":"0","primary":-1,"nullable":-1}]',
              createBy: 'admintest',
              updateBy: null,
              createTime: '2025-04-30 15:35:30',
              updateTime: null,
              delFlag: '0',
            },
            {
              id: '1915700727342632961',
              dsName: 'pigxx_core',
              tableName: 'hall_valve_his',
              comments: '单元阀历史',
              columnInfo:
                '[{"name":"data_time","comment":"租户ID","typeName":"datetime","precision":0,"scale":0,"primary":1,"nullable":-1},{"name":"device_id","comment":"设备ID","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":1,"nullable":-1},{"name":"manufactur","comment":"厂家","typeName":"varchar","precision":255,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"device_no","comment":"设备编号","typeName":"varchar","precision":255,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"collect_no","comment":"采集器编号","typeName":"varchar","precision":255,"scale":0,"defaultValue":"0","primary":-1,"nullable":-1},{"name":"hall_id","comment":"单元ID","typeName":"varchar","precision":20,"scale":0,"primary":-1,"nullable":-1}]',
              createBy: 'admintest',
              updateBy: null,
              createTime: '2025-04-25 17:33:40',
              updateTime: null,
              delFlag: '0',
            },
            {
              id: '1913109289547259905',
              dsName: 'pigxx_core',
              tableName: 'md_station',
              comments: '站点列表',
              columnInfo:
                '[{"name":"id","comment":"主键","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":1,"nullable":-1},{"name":"station_id","comment":"","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"station_name","comment":"","typeName":"varchar","precision":255,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"jingdu","comment":"","typeName":"varchar","precision":255,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"weidu","comment":"","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"create_by","comment":"创建人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"create_time","comment":"创建时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_by","comment":"修改人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_time","comment":"修改时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"del_flag","comment":"删除标记","typeName":"char","precision":1,"scale":0,"defaultValue":"0","primary":-1,"nullable":-1},{"name":"tenant_id","comment":"租户ID","typeName":"bigint","precision":0,"scale":0,"primary":-1,"nullable":-1}]',
              createBy: 'admintest',
              updateBy: null,
              createTime: '2025-04-18 13:56:13',
              updateTime: null,
              delFlag: '0',
            },
            {
              id: '1912155632953647105',
              dsName: 'pigxx_core',
              tableName: 'smart_gateway',
              comments: '网关管理',
              columnInfo:
                '[{"name":"id","comment":"主键","typeName":"varchar","precision":32,"scale":0,"defaultValue":null,"primary":1,"nullable":-1},{"name":"mac","comment":"mac地址","typeName":"varchar","precision":32,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"ability","comment":"","typeName":"int","precision":4,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"uid","comment":"用户id","typeName":"varchar","precision":32,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"secret_key","comment":"安全加密密钥","typeName":"varchar","precision":32,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"local_key","comment":"本地加密密钥","typeName":"varchar","precision":32,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"private_key","comment":"私钥","typeName":"text","precision":255,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"public_keyi","comment":"公钥","typeName":"text","precision":255,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"active_time","comment":"激活时间","typeName":"timestamp","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"is_online","comment":"是否在线","typeName":"tinyint","precision":1,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"name","comment":"名称","typeName":"varchar","precision":100,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"version","comment":"版本","typeName":"varchar","precision":32,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"product_id","comment":"产品id","typeName":"varchar","precision":32,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"lon","comment":"经度","typeName":"varchar","precision":20,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"lat","comment":"纬度","typeName":"varchar","precision":20,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"ip","comment":"ip地址","typeName":"varchar","precision":32,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"port","comment":"端口","typeName":"varchar","precision":8,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"status","comment":"状态","typeName":"int","precision":1,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"pv","comment":"pv","typeName":"varchar","precision":255,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"token","comment":"token","typeName":"varchar","precision":255,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"create_by","comment":"创建人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"create_time","comment":"创建时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_by","comment":"修改人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_time","comment":"修改时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"del_flag","comment":"删除标记","typeName":"char","precision":1,"scale":0,"defaultValue":"0","primary":-1,"nullable":-1},{"name":"tenant_id","comment":"租户ID","typeName":"bigint","precision":0,"scale":0,"primary":-1,"nullable":-1}]',
              createBy: 'admintest',
              updateBy: null,
              createTime: '2025-04-15 22:46:44',
              updateTime: null,
              delFlag: '0',
            },
            {
              id: '1911281258931359745',
              dsName: 'pigxx_core',
              tableName: 'smart_device_a',
              comments: '设备管理',
              columnInfo:
                '[{"name":"id","comment":"主键","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":1,"nullable":-1},{"name":"name","comment":"设备名称","typeName":"varchar","precision":32,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"type","comment":"设备类型","typeName":"varchar","precision":32,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"mac","comment":"mac地址","typeName":"varchar","precision":32,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"no","comment":"编号","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"product_id","comment":"产品id","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"gw_id","comment":"网关id","typeName":"varchar","precision":32,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"group_id","comment":"分组id","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"is_online","comment":"是否在线","typeName":"varchar","precision":1,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"parent_id","comment":"所属设备id","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"sort","comment":"排序","typeName":"int","precision":1,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"status","comment":"可用状态","typeName":"int","precision":1,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"create_by","comment":"创建人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"create_time","comment":"创建时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_by","comment":"修改人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_time","comment":"修改时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"del_flag","comment":"删除标记","typeName":"char","precision":1,"scale":0,"defaultValue":"0","primary":-1,"nullable":-1}]',
              createBy: 'admintest',
              updateBy: null,
              createTime: '2025-04-13 12:52:17',
              updateTime: null,
              delFlag: '0',
            },
            {
              id: '1911242439049777154',
              dsName: 'pigxx_core',
              tableName: 'smart_group',
              comments: '群组管理',
              columnInfo:
                '[{"name":"id","comment":"主键","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":1,"nullable":-1},{"name":"group_name","comment":"群组名称","typeName":"varchar","precision":100,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"group_desc","comment":"群组说明","typeName":"varchar","precision":255,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"group_content","comment":"群组内容","typeName":"varchar","precision":500,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"sort","comment":"排序","typeName":"int","precision":4,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"status","comment":"状态","typeName":"int","precision":1,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"create_by","comment":"创建人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"create_time","comment":"创建时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_by","comment":"修改人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_time","comment":"修改时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"del_flag","comment":"删除标记","typeName":"char","precision":1,"scale":0,"defaultValue":"0","primary":-1,"nullable":-1},{"name":"tenant_id","comment":"租户ID","typeName":"bigint","precision":0,"scale":0,"primary":-1,"nullable":-1}]',
              createBy: 'admintest',
              updateBy: null,
              createTime: '2025-04-13 10:18:01',
              updateTime: null,
              delFlag: '0',
            },
            {
              id: '1911233441013600258',
              dsName: 'pigxx_core',
              tableName: 'smart_scene',
              comments: '情景',
              columnInfo:
                '[{"name":"id","comment":"主键","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":1,"nullable":-1},{"name":"scene_name","comment":"情景名称","typeName":"varchar","precision":100,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"scene_desc","comment":"情景说明","typeName":"varchar","precision":255,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"scene_content","comment":"情景内容","typeName":"varchar","precision":500,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"sort","comment":"排序","typeName":"int","precision":255,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"status","comment":"状态","typeName":"int","precision":1,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"create_by","comment":"创建人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"create_time","comment":"创建时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_by","comment":"修改人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_time","comment":"修改时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"del_flag","comment":"删除标记","typeName":"char","precision":1,"scale":0,"defaultValue":"0","primary":-1,"nullable":-1},{"name":"tenant_id","comment":"租户ID","typeName":"bigint","precision":0,"scale":0,"primary":-1,"nullable":-1}]',
              createBy: 'admintest',
              updateBy: null,
              createTime: '2025-04-13 09:42:16',
              updateTime: null,
              delFlag: '0',
            },
            {
              id: '1911228857901813762',
              dsName: 'pigxx_core',
              tableName: 'smart_location',
              comments: '区域表',
              columnInfo:
                '[{"name":"id","comment":"主键","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":1,"nullable":-1},{"name":"dept_id","comment":"客户名称","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"name","comment":"区域名称","typeName":"varchar","precision":50,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"parent_id","comment":"父级id","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"path","comment":"完整路径","typeName":"varchar","precision":100,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"sort","comment":"排序","typeName":"int","precision":255,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"status","comment":"状态","typeName":"int","precision":1,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"create_by","comment":"创建人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"create_time","comment":"创建时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_by","comment":"修改人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_time","comment":"修改时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"del_flag","comment":"删除标记","typeName":"char","precision":1,"scale":0,"defaultValue":"0","primary":-1,"nullable":-1},{"name":"tenant_id","comment":"租户ID","typeName":"bigint","precision":20,"scale":0,"primary":-1,"nullable":-1}]',
              createBy: 'admintest',
              updateBy: null,
              createTime: '2025-04-13 09:24:03',
              updateTime: null,
              delFlag: '0',
            },
            {
              id: '1910322390940180481',
              dsName: 'pigxx_core',
              tableName: 'aaa',
              comments: '1',
              columnInfo:
                '[{"name":"id","comment":"主键","typeName":"bigint","precision":20,"scale":0,"defaultValue":null,"primary":1,"nullable":-1},{"name":"create_by","comment":"创建人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"create_time","comment":"创建时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_by","comment":"修改人","typeName":"varchar","precision":64,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"update_time","comment":"修改时间","typeName":"datetime","precision":0,"scale":0,"defaultValue":null,"primary":-1,"nullable":1},{"name":"del_flag","comment":"删除标记","typeName":"char","precision":1,"scale":0,"defaultValue":"0","primary":-1,"nullable":-1},{"name":"tenant_id","comment":"租户ID","typeName":"bigint","precision":0,"scale":0,"primary":-1,"nullable":-1}]',
              createBy: 'admintest',
              updateBy: null,
              createTime: '2025-04-10 21:22:05',
              updateTime: null,
              delFlag: '0',
            },
          ],
        },
        msg: 'success',
      }
    },
  },
]
export default api
